home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / tcp / AmigaTCP.lha / AmigaTCP / src / ether.h < prev    next >
C/C++ Source or Header  |  1989-06-24  |  549b  |  21 lines

  1. /* Generic Ethernet constants and templates */
  2.  
  3. #define    EADDR_LEN    6
  4. /* Format of an Ethernet header */
  5. struct ether {
  6.     char dest[EADDR_LEN];
  7.     char source[EADDR_LEN];
  8.     int16 type;
  9. };
  10. /* Ethernet broadcast address */
  11. extern char ether_bdcst[];
  12.  
  13. /* Ethernet type fields */
  14. #define    IP_TYPE        0x800    /* Type field for IP */
  15. #define    ARP_TYPE    0x806    /* Type field for ARP */
  16.  
  17. #define    HDR        sizeof(struct ether)    /* Size of Ethernet header */
  18.  
  19. #define    RUNT        60    /* smallest legal size packet, no fcs */
  20. #define    GIANT        1514    /* largest legal size packet, no fcs */
  21.